﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using Vanfa.Entities.User;
using Vanfa.Biz.User;
using Vanfa.Common;
using Vanfa.Web.UI;

namespace Vanfa.Web.user
{
    public partial class profile_group : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if(UserData == null)
        
        }

        protected void lbtnNext_Click(object sender, EventArgs e)
        {
            UserProfileMag.Fill(SetGroupInfo());
        }

        private vUserGroupInfo SetGroupInfo()
        {
            vUserGroupInfo ug = new vUserGroupInfo
            {
                Agent = txtAgent.Text.Trim(),
                Email = txtEmail.Text.Trim(),
                FunDate = Convert.ToDateTime(txtFDate.Text.Trim()),
                GourpName = txtGroupName.Text.Trim(),
                GroupCount = Convert.ToInt32(txtGroupCount.Text.Trim()),
                GroupType = Convert.ToInt32(rdlGroupType.SelectedValue),
                IDCard = txtIDCard.Text.Trim(),
                Mobile1 = txtMobile1.Text.Trim(),
                Mobile2 = txtMobile2.Text.Trim(),
                QQ = txtQQ.Text.Trim(),
                UserID = UserData.UserID,
                WebChat = txtWChat.Text.Trim(),
                Weibo = txtWBo.Text.Trim(),
                Icon = wIconUpload.IconPath
            };
            return ug;
        }
    }
}